const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  realName: state => state.user.realName,
  phone: state => state.user.phone,
  email: state => state.user.email,
  status: state => state.user.status,
  loginType: state => state.user.loginType,
  role: state => state.user.role,
  name: state => state.user.name,
  id: state => state.user.id,
  permission: state => state.user.permission,
  routes: state => state.permission.routes, // 路由数据
  visitedviews: state => state.tagsview.visitedviews // 新增
}
export default getters
